<!-- HelloWorld.vue -->

<template>
	<view class="container">
		<view class="content">
			<text class="text">{{ encryptedParams }}</text>
		</view>
	</view>
</template>

<script>
	// import cryptoUtils from '@/path/to/cryptoUtils.js'
	import cryptoUtils  from '@/common/encryption.js';

	export default {
		data() {
			return {
				encryptedParams: ''
			}
		},
		mounted() {
			const params = {
				username: 'john_doe',
				password: 'secretpassword'
			}
			console.log(params,'888')
			this.encryptedParams = cryptoUtils.encryptParams(params)
		}
	}
</script>

<style>
	.container {
		display: flex;
		justify-content: center;
		align-items: center;
		height: 100vh;
	}

	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.text {
		font-size: 18px;
		margin-bottom: 10px;
	}
</style>